//
//  KYIntroductionModel.m
//  kuaiyi
//
//  Created by 杨亮 on 16/3/17.
//  Copyright © 2016年 kuaiyi. All rights reserved.
//

#import "KYIntroductionModel.h"
#import "Header.h"

@implementation KYIntroductionModel
+(void)getIntroductionModelWithDoctor_id:(NSInteger)doctor_id success:(void(^)(KYIntroductionModel *introductionModel))success{
    NSString *url = @"http://iosapi.itcast.cn/getIntroduction.json.php";
    NSDictionary *paramDic = @{@"login_token":@"985c96ce43bb5ef69de3e1ad8afaa83f",@"doctor_id":@(300000315)};
    [[KYNetTool shareManager]POST:url parameters:paramDic progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseObject options:0 error:nil];
        NSDictionary *dictionary = dict[@"data"];
        NSLog(@"%@",dictionary);
        KYIntroductionModel *model = [KYIntroductionModel mj_objectWithKeyValues:dictionary];
        if (success) {
            success(model);
        }
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"%@",error.description);
    }];
}
@end
